package p41_autoconfig;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import p21_参数解析器.Person;

/**
 * 自动配置类1
 * 这里使用了自定义的条件注解
 */
@Configuration
public class Config1 {
    @Bean
    @ConditionalOnExists(className = "com.qw", exists = true)
    public Person person1() {
        return new Person();
    }
}
